window: don't add the background style class when drawing CSD elements
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 21 Mar 2013 12:47:06 +0000 (08:47 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 21 Mar 2013 20:32:00 +0000 (16:32 -0400)
We already set it in init, so this is just redundant.
The additional window-content style class here is needed so that we can
distinguish between the full X window background and the background for
the actual window contents.

gtk/gtkwindow.c

index 2d047a2d2e3eed65bcc251c626c1983ee1e6702a..89b9ce780b23d5dee2e695d342ec5895ca755d23 100644 (file)
@@ -8956,7 +8956,7 @@ gtk_window_draw (GtkWidget *widget,
       gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
     {
       gtk_style_context_save (context);
-      gtk_style_context_add_class (context, GTK_STYLE_CLASS_BACKGROUND);
+      gtk_style_context_add_class (context, "window-content");
 
       if (priv->client_decorated &&
           priv->decorated &&